home *** CD-ROM | disk | FTP | other *** search
/ Nebula 2 / Nebula Two.iso / SourceCode / MiscKit1.7.1 / MiscKit / Headers / MOKit / MOString.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-01-27  |  1.7 KB  |  47 lines

  1. //
  2. //    MOString.h -- this is a compatability header
  3. //        Written by Don Yacktman Copyright (c) 1995 by Don Yacktman.
  4. //
  5.  
  6. #import <appkit/appkit.h>
  7.  
  8. #ifndef MOSTRINGCOMPAT_H
  9. #define MOSTRINGCOMPAT_H
  10.  
  11. #define MOString MiscString
  12.  
  13. #endif MOSTRINGCOMPAT_H
  14.  
  15.  
  16. // Note that MiscStrings cannot be uniqued, and cannot be set using
  17. // the noCopy:shouldFree: paradigm.  The compatibiliy methods basically
  18. // ignore requests made along these lines, and simply keep everything
  19. // as a mutable C string.  This is less efficient, but shouldn't cause
  20. // any real problems except in cases where you make a string unique
  21. // as a way to prevent modification--a MiscString will still be
  22. // modified.  Since it is bad practice to allow a non-mutable string
  23. // to be sent mutating messages anyway, I don't consider this a bug
  24. // on the MiscKit side.  Note that when the MiscKit moves on top of
  25. // NeXT's Foundation Kit, these semantics change again since there
  26. // will be mutable and non-mutable strings, amongst other things...
  27.  
  28. // The MiscString version of this method is true for objects of different
  29. // classes as long as they have the same -stringValue, which is different
  30. // from the MOString semantics of this method.
  31. // - (BOOL)isEqual:anObj;
  32.  
  33.  
  34. // The following MOString methods are already defined by the
  35. // MiscString--but they take different argument types!  As such,
  36. // you will have to change the calls yourself to keep things
  37. // working right.  The proper method names for the MiscString
  38. // counterparts are given to aid you in the transition.
  39.  
  40. // - cat:stringObject;
  41. // should be changed to
  42. // - concatenate:stringObject;
  43.  
  44. // - insert:stringObject at:(int)position;
  45. // should be changed to
  46. // - insertString:stringObject at:(int)position;
  47.